// 关于文章模块
import {
  reqGetCate
} from '@/api/article'
export default {
  state: {
    cateList: [] // 文章分类列表
  },
  mutations: {
    setCateList (state, list) {
      state.cateList = list
    }
  },
  actions: {
    async GetCateList (context) {
      const { data } = await reqGetCate()
      if (data.code === 0) {
        context.commit('setCateList', data.data)
      }
    }
  },
  getters: {},
  namespaced: true
}
